const Koa = require('koa')
const Router = require('koa-router')

const app = new Koa()
const router = new Router()

router.get('/data', ctx => {
	ctx.body = '这里是返回的数据'
})
router.get('/api', ctx => {
	ctx.body = '这里是返回的数据'
})

app.use(router.routes())
app.listen(3000)
